<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>HUI 用户中心界面</title>
<link rel="stylesheet" type="text/css" href="css/hui.css" />
</head>
<body style="background:#F4F5F6;">
<header class="hui-header">
    <h1>用户中心</h1>
</header>
<div class="hui-wrap">
    <div class="hui-media-list" style="background:#FFFFFF; margin-top:28px;">
        <ul>
            <li style="margin:0px; padding:8px;">
                <a href="javascript:hui.toast('hi...');">
                    <div class="hui-media-list-img"><img src="image/user.png" /></div>
                    <div class="hui-media-content">
                        	<ul style="margin-top: 10px;">
                        		<li>当前用户：<span id="uName"></span></li>
                        		<li>账户余额：<span id="money"></span>元</li>
                        	</ul>
                    </div>
                </a>
            </li>
        </ul>
    </div>
    <div class="hui-list" style="background:#FFFFFF; margin-top:28px;">
        <ul>
            <li><a href="javascript:void(0);" class="hui-arrow hui-icons hui-icons-help">&nbsp;&nbsp;资金明细</a></li>
            <li><a href="javascript:void(0);" class="hui-arrow hui-icons hui-icons-forum">&nbsp;&nbsp;我的关注</a></li>
            <li><a href="javascript:void(0);" class="hui-arrow hui-icons hui-icons-write">&nbsp;&nbsp;账户充值</a></li>
            <li><a href="javascript:void(0);" class="hui-arrow hui-icons hui-icons-nav">&nbsp;&nbsp;合作协议</a></li>
        </ul>
    </div>
    <div class="hui-list" style="background:#FFFFFF; margin-top:28px;">
        <ul>
            <li><a href="javascript:tuichu();" class="hui-icons hui-icons-logoff">&nbsp;&nbsp;注销登录</a></li>
        </ul>
    </div>
</div>
<div id="hui-footer">
    <a href="javascript:hui.open('index.html');" id="nav-home">
        <div class="hui-footer-icons hui-icons-home"></div>
        <div class="hui-footer-text">首页</div>
    </a>
    <a href="javascript:hui.open('zixuan.html');" id="nav-news">
        <div class="hui-footer-icons hui-icons-picker"></div>
        <div class="hui-footer-text">选股</div>
    </a>
    <a href="javascript:hui.open('celue.html?_='+new Date().getTime());" id="nav-news">
        <div class="hui-footer-icons hui-icons-water-fall"></div>
        <div class="hui-footer-text">策略</div>
    </a>
    <a href="javascript:hui.open('msg.html');" id="nav-forum">
        <div class="hui-footer-icons hui-icons-forum"></div>
        <div class="hui-footer-text">消息</div>
    </a>
    <a href="javascript:hui.open('yonghu.html');" id="nav-my">
        <div class="hui-footer-icons hui-icons-my"></div>
        <div class="hui-footer-text">我的</div>
    </a>
</div>
<script type="text/javascript" src="js/hui.js" charset="UTF-8"></script>
<script type="text/javascript">
    hui.ready(function(){
    	var user = localStorage.getItem("nowUser");//取回students变量  
    	if(user==null){
    		hui.open("login.html");
    	}
		user = JSON.parse(user);//把字符串转换成JSON对象 
		hui("#uName").html(user.name);
		hui("#money").html(user.balance);
	});
	function tuichu(){
		localStorage.removeItem("nowUser");
		hui.open("index.html");
	}
</script>
</body>
</html>